<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue使用之实例基础</title>
    <script src="../vue.min.js" type="text/javascript"></script>
</head>
<body>
<div id="app">
    <div id="test">{{test}}</div>
    <div>{{demo()}}</div>
    <div>{{a}}</div>
</div>
<script>
    var app=new Vue({
        el:"#app",
        data:{
            test:'Hello，我是黄小强',
            a:''
        },
        methods:{
            demo:function(){
                console.log('demo');
            }
        }
    });
    app.a='123456';
    console.log(app.$el === document.getElementById('app'));
</script>
</body>
</html>